package com.eugene.ui.util;

import java.util.Calendar;

import com.eugene.element.FnCalendar;

public class ApplicationSingleton {
//	static private FnCalendar baseDate;
//	private ApplicationSingleton(FnCalendar baseDate){
//		this.baseDate = baseDate;
//	}
//	
//	public static FnCalendar getBaseDate(){
//		if(baseDate == null){
//			baseDate = FnCalendar.getInstance();
//		}
//		return baseDate;
//	}
	static private ApplicationSingleton instance;
	private FnCalendar baseDate;
	
	private ApplicationSingleton() {
//		super();
		this.baseDate = FnCalendar.getInstance();
	}
	
	public static ApplicationSingleton getInstance() {
		if (instance == null) {
		instance = new ApplicationSingleton();
		}
		return instance;
	}
	public void setBaseDate(FnCalendar baseDate){
		this.baseDate = baseDate;
	}
	
	public FnCalendar getBaseDate(){
		return this.baseDate;
	}

}
